package com.burnerpat.fl2d.core.weapon;


public abstract class Model
{
	private String name = "undefined";
	
	private double damageModifier = 0.5;
	private double rateModifier = 0.5;
	
	public Model()
	{
		
	}
	
	public Model(String pName)
	{
		name = pName;
	}
	
	public Model(String pName, double pDamageModifier, double pRateModifier)
	{
		name = pName;
		damageModifier = pDamageModifier;
		rateModifier = pRateModifier;
	}
	
	public void setWeightedAttributes(double damageWeight, double rateWeight)
	{
		damageModifier = damageWeight / (damageWeight + rateWeight);
		
		rateModifier = 1.0 - damageModifier;
	}
	
	public String getName()
	{
		return name;
	}
	
	public double getDamageModifier()
	{
		return damageModifier;
	}
	
	public double getRateModifier()
	{
		return rateModifier;
	}
}
